import requests


class IhrmEmpApi:
    @classmethod
    def add_emp_api(cls,add_body):
        # 添加员工id
        add_url = "http://ihrm2-test.itheima.net/api/sys/user"
        add_header = {"Content-Type": "application/json", "Authorization": token}
        # add_body = {

        #     "username": "小猪佩奇",
        #     "mobile": "15912312145",
        #     "workNumber": "22"
        #  }
        add_resp = requests.post(url=add_url, headers=add_header, json=add_body)
        return  add_resp

